<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Jetson Inference: jetson-utils/gstEncoder.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="NVLogo_2D.jpg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Jetson Inference
   </div>
   <div id="projectbrief">DNN Vision Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('gstEncoder_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">gstEncoder.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="gstEncoder_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Permission is hereby granted, free of charge, to any person obtaining a</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * copy of this software and associated documentation files (the &quot;Software&quot;),</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * to deal in the Software without restriction, including without limitation</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * the rights to use, copy, modify, merge, publish, distribute, sublicense,</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * and/or sell copies of the Software, and to permit persons to whom the</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * Software is furnished to do so, subject to the following conditions:</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * The above copyright notice and this permission notice shall be included in</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * all copies or substantial portions of the Software.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * DEALINGS IN THE SOFTWARE.</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#ifndef __GSTREAMER_ENCODER_H__</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#define __GSTREAMER_ENCODER_H__</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="gstUtility_8h.html">gstUtility.h</a>&quot;</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="videoOutput_8h.html">videoOutput.h</a>&quot;</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="RingBuffer_8h.html">RingBuffer.h</a>&quot;</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="classgstEncoder.html">   45</a></span>&#160;<span class="keyword">class </span><a class="code" href="classgstEncoder.html">gstEncoder</a> : <span class="keyword">public</span> <a class="code" href="classvideoOutput.html">videoOutput</a></div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;{</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;        <span class="keyword">static</span> <a class="code" href="classgstEncoder.html">gstEncoder</a>* <a class="code" href="classgstEncoder.html#a5268beb9785a1e817171195a930cc1c0">Create</a>( <span class="keyword">const</span> <a class="code" href="structvideoOptions.html">videoOptions</a>&amp; options );</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        <span class="keyword">static</span> <a class="code" href="classgstEncoder.html">gstEncoder</a>* <a class="code" href="classgstEncoder.html#a5268beb9785a1e817171195a930cc1c0">Create</a>( <span class="keyword">const</span> <a class="code" href="structURI.html">URI</a>&amp; resource, <a class="code" href="structvideoOptions.html#a99a95e988dcf46c0e9177abc7217cf8f">videoOptions::Codec</a> codec );</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        </div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        <a class="code" href="classgstEncoder.html#a5a56a6a5c4a3ea887fa71a63f9c3bcc3">~gstEncoder</a>();</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;        </div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="classgstEncoder.html#a6b05ef86ea3c5a417056db08b0a10b23">   67</a></span>&#160;        <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt; <span class="keywordtype">bool</span> <a class="code" href="classgstEncoder.html#a6b05ef86ea3c5a417056db08b0a10b23">Render</a>( T* image, uint32_t width, uint32_t height )           { <span class="keywordflow">return</span> <a class="code" href="classgstEncoder.html#a6b05ef86ea3c5a417056db08b0a10b23">Render</a>((<span class="keywordtype">void</span>**)image, width, height, imageFormatFromType&lt;T&gt;()); }</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        </div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classgstEncoder.html#a6b05ef86ea3c5a417056db08b0a10b23">Render</a>( <span class="keywordtype">void</span>* image, uint32_t width, uint32_t height, <a class="code" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a> format );</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classgstEncoder.html#a39bac88df0521b855a01aeb58953815e">Open</a>();</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classgstEncoder.html#a12c9bf5d87ef25783763a221bf66fa8e">Close</a>();</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="classgstEncoder.html#ab1fd934813f47039bc30aac6238c5bc7">   90</a></span>&#160;        <span class="keyword">virtual</span> <span class="keyword">inline</span> uint32_t <a class="code" href="classgstEncoder.html#ab1fd934813f47039bc30aac6238c5bc7">GetType</a>()<span class="keyword"> const         </span>{ <span class="keywordflow">return</span> <a class="code" href="classgstEncoder.html#a0274b5b3365e440b93fd6b5c8bcf2b2e">Type</a>; }</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="classgstEncoder.html#a0274b5b3365e440b93fd6b5c8bcf2b2e">   95</a></span>&#160;        <span class="keyword">static</span> <span class="keyword">const</span> uint32_t <a class="code" href="classgstEncoder.html#a0274b5b3365e440b93fd6b5c8bcf2b2e">Type</a> = (1 &lt;&lt; 2);</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div><div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="classgstEncoder.html#a675b50aae5ee8e07c28599f4c07aa91b">  108</a></span>&#160;        <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classgstEncoder.html#a675b50aae5ee8e07c28599f4c07aa91b">SupportedExtensions</a>[];</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;        <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classgstEncoder.html#abf3c5a8fd311d98df95873ddbee933f9">IsSupportedExtension</a>( <span class="keyword">const</span> <span class="keywordtype">char</span>* ext );</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;        <a class="code" href="classgstEncoder.html#a70652da4e8e3cf9cbda9df4894531497">gstEncoder</a>( <span class="keyword">const</span> <a class="code" href="structvideoOptions.html">videoOptions</a>&amp; options );</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;        </div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgstEncoder.html#ab43f8e274f4856dbc14f83e5311feacd">init</a>();</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="classgstEncoder.html#a58ad54570717788f05515e55e350082e">checkMsgBus</a>();</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgstEncoder.html#a967e02f227d4739ead8760bba862efa1">buildCapsStr</a>();</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgstEncoder.html#a3a03a7c3f2633842618f8d9e9e21c5a0">buildLaunchStr</a>();</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;        </div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgstEncoder.html#a29ebd7d82bf4a37c5e16c173b0946f21">encodeYUV</a>( <span class="keywordtype">void</span>* buffer, <span class="keywordtype">size_t</span> size );</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;        <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classgstEncoder.html#afd341f4bfcdd3100bcc24a102b7793f4">onNeedData</a>( _GstElement* pipeline, uint32_t size, <span class="keywordtype">void</span>* user_data );</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;        <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classgstEncoder.html#a7c4ca1b07a85870a9fb3fabfa1afe4b8">onEnoughData</a>( _GstElement* pipeline, <span class="keywordtype">void</span>* user_data );</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;</div><div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="classgstEncoder.html#ae9aaaee5990a6683707a7ac865928288">  131</a></span>&#160;        _GstBus*     <a class="code" href="classgstEncoder.html#ae9aaaee5990a6683707a7ac865928288">mBus</a>;</div><div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="classgstEncoder.html#a9dc51057a967892d1a6ed115bb1a33e9">  132</a></span>&#160;        _GstCaps*    <a class="code" href="classgstEncoder.html#a9dc51057a967892d1a6ed115bb1a33e9">mBufferCaps</a>;</div><div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="classgstEncoder.html#adb9874d03ba3bda30900374acd873e5a">  133</a></span>&#160;        _GstElement* <a class="code" href="classgstEncoder.html#adb9874d03ba3bda30900374acd873e5a">mAppSrc</a>;</div><div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="classgstEncoder.html#a7a7be81637bfd842c25e7d66abaa11d7">  134</a></span>&#160;        _GstElement* <a class="code" href="classgstEncoder.html#a7a7be81637bfd842c25e7d66abaa11d7">mPipeline</a>;</div><div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="classgstEncoder.html#a628403dfed854cf7a2476f5cd64025fa">  135</a></span>&#160;        <span class="keywordtype">bool</span>         <a class="code" href="classgstEncoder.html#a628403dfed854cf7a2476f5cd64025fa">mNeedData</a>;</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;        </div><div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="classgstEncoder.html#ab11a3b2c977fc8e1dc1f34122223e050">  137</a></span>&#160;        std::string  <a class="code" href="classgstEncoder.html#ab11a3b2c977fc8e1dc1f34122223e050">mCapsStr</a>;</div><div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="classgstEncoder.html#aec885b1948e7a4781e8a39d0432724ca">  138</a></span>&#160;        std::string  <a class="code" href="classgstEncoder.html#aec885b1948e7a4781e8a39d0432724ca">mLaunchStr</a>;</div><div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="classgstEncoder.html#a722fde8fa1cbd516597ea0a5e8962c22">  139</a></span>&#160;        std::string  <a class="code" href="classgstEncoder.html#a722fde8fa1cbd516597ea0a5e8962c22">mOutputPath</a>;</div><div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="classgstEncoder.html#a1f8738f12d7c6df91152cfc9f7366fc8">  140</a></span>&#160;        std::string  <a class="code" href="classgstEncoder.html#a1f8738f12d7c6df91152cfc9f7366fc8">mOutputIP</a>;</div><div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="classgstEncoder.html#a77b62cf64dceab9492e5e45dbdccdb0a">  141</a></span>&#160;        uint16_t     <a class="code" href="classgstEncoder.html#a77b62cf64dceab9492e5e45dbdccdb0a">mOutputPort</a>;</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;</div><div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="classgstEncoder.html#a342a2209793a5ab446395d31e485a07c">  143</a></span>&#160;        <a class="code" href="classRingBuffer.html">RingBuffer</a> <a class="code" href="classgstEncoder.html#a342a2209793a5ab446395d31e485a07c">mBufferYUV</a>;</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;};</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160; </div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160; </div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="classgstEncoder_html_a628403dfed854cf7a2476f5cd64025fa"><div class="ttname"><a href="classgstEncoder.html#a628403dfed854cf7a2476f5cd64025fa">gstEncoder::mNeedData</a></div><div class="ttdeci">bool mNeedData</div><div class="ttdef"><b>Definition:</b> gstEncoder.h:135</div></div>
<div class="ttc" id="classgstEncoder_html_a6b05ef86ea3c5a417056db08b0a10b23"><div class="ttname"><a href="classgstEncoder.html#a6b05ef86ea3c5a417056db08b0a10b23">gstEncoder::Render</a></div><div class="ttdeci">bool Render(T *image, uint32_t width, uint32_t height)</div><div class="ttdoc">Encode the next frame. </div><div class="ttdef"><b>Definition:</b> gstEncoder.h:67</div></div>
<div class="ttc" id="RingBuffer_8h_html"><div class="ttname"><a href="RingBuffer_8h.html">RingBuffer.h</a></div></div>
<div class="ttc" id="classgstEncoder_html_ab1fd934813f47039bc30aac6238c5bc7"><div class="ttname"><a href="classgstEncoder.html#ab1fd934813f47039bc30aac6238c5bc7">gstEncoder::GetType</a></div><div class="ttdeci">virtual uint32_t GetType() const</div><div class="ttdoc">Return the interface type (gstEncoder::Type) </div><div class="ttdef"><b>Definition:</b> gstEncoder.h:90</div></div>
<div class="ttc" id="classgstEncoder_html_a7c4ca1b07a85870a9fb3fabfa1afe4b8"><div class="ttname"><a href="classgstEncoder.html#a7c4ca1b07a85870a9fb3fabfa1afe4b8">gstEncoder::onEnoughData</a></div><div class="ttdeci">static void onEnoughData(_GstElement *pipeline, void *user_data)</div></div>
<div class="ttc" id="classgstEncoder_html_a12c9bf5d87ef25783763a221bf66fa8e"><div class="ttname"><a href="classgstEncoder.html#a12c9bf5d87ef25783763a221bf66fa8e">gstEncoder::Close</a></div><div class="ttdeci">virtual void Close()</div><div class="ttdoc">Close the stream. </div></div>
<div class="ttc" id="classgstEncoder_html_ab43f8e274f4856dbc14f83e5311feacd"><div class="ttname"><a href="classgstEncoder.html#ab43f8e274f4856dbc14f83e5311feacd">gstEncoder::init</a></div><div class="ttdeci">bool init()</div></div>
<div class="ttc" id="classgstEncoder_html_a1f8738f12d7c6df91152cfc9f7366fc8"><div class="ttname"><a href="classgstEncoder.html#a1f8738f12d7c6df91152cfc9f7366fc8">gstEncoder::mOutputIP</a></div><div class="ttdeci">std::string mOutputIP</div><div class="ttdef"><b>Definition:</b> gstEncoder.h:140</div></div>
<div class="ttc" id="classgstEncoder_html_a5a56a6a5c4a3ea887fa71a63f9c3bcc3"><div class="ttname"><a href="classgstEncoder.html#a5a56a6a5c4a3ea887fa71a63f9c3bcc3">gstEncoder::~gstEncoder</a></div><div class="ttdeci">~gstEncoder()</div><div class="ttdoc">Destructor. </div></div>
<div class="ttc" id="classgstEncoder_html_a3a03a7c3f2633842618f8d9e9e21c5a0"><div class="ttname"><a href="classgstEncoder.html#a3a03a7c3f2633842618f8d9e9e21c5a0">gstEncoder::buildLaunchStr</a></div><div class="ttdeci">bool buildLaunchStr()</div></div>
<div class="ttc" id="videoOutput_8h_html"><div class="ttname"><a href="videoOutput_8h.html">videoOutput.h</a></div></div>
<div class="ttc" id="classgstEncoder_html_abf3c5a8fd311d98df95873ddbee933f9"><div class="ttname"><a href="classgstEncoder.html#abf3c5a8fd311d98df95873ddbee933f9">gstEncoder::IsSupportedExtension</a></div><div class="ttdeci">static bool IsSupportedExtension(const char *ext)</div><div class="ttdoc">Return true if the extension is in the list of SupportedExtensions. </div></div>
<div class="ttc" id="classgstEncoder_html_ae9aaaee5990a6683707a7ac865928288"><div class="ttname"><a href="classgstEncoder.html#ae9aaaee5990a6683707a7ac865928288">gstEncoder::mBus</a></div><div class="ttdeci">_GstBus * mBus</div><div class="ttdef"><b>Definition:</b> gstEncoder.h:131</div></div>
<div class="ttc" id="classgstEncoder_html_aec885b1948e7a4781e8a39d0432724ca"><div class="ttname"><a href="classgstEncoder.html#aec885b1948e7a4781e8a39d0432724ca">gstEncoder::mLaunchStr</a></div><div class="ttdeci">std::string mLaunchStr</div><div class="ttdef"><b>Definition:</b> gstEncoder.h:138</div></div>
<div class="ttc" id="classgstEncoder_html_a58ad54570717788f05515e55e350082e"><div class="ttname"><a href="classgstEncoder.html#a58ad54570717788f05515e55e350082e">gstEncoder::checkMsgBus</a></div><div class="ttdeci">void checkMsgBus()</div></div>
<div class="ttc" id="structURI_html"><div class="ttname"><a href="structURI.html">URI</a></div><div class="ttdoc">Resource URI of a video device, IP stream, or file/directory. </div><div class="ttdef"><b>Definition:</b> URI.h:91</div></div>
<div class="ttc" id="classvideoOutput_html"><div class="ttname"><a href="classvideoOutput.html">videoOutput</a></div><div class="ttdoc">The videoOutput API is for rendering and transmitting frames to video input devices such as display w...</div><div class="ttdef"><b>Definition:</b> videoOutput.h:86</div></div>
<div class="ttc" id="classgstEncoder_html_a675b50aae5ee8e07c28599f4c07aa91b"><div class="ttname"><a href="classgstEncoder.html#a675b50aae5ee8e07c28599f4c07aa91b">gstEncoder::SupportedExtensions</a></div><div class="ttdeci">static const char * SupportedExtensions[]</div><div class="ttdoc">String array of supported video file extensions, terminated with a NULL sentinel value. </div><div class="ttdef"><b>Definition:</b> gstEncoder.h:108</div></div>
<div class="ttc" id="classgstEncoder_html_adb9874d03ba3bda30900374acd873e5a"><div class="ttname"><a href="classgstEncoder.html#adb9874d03ba3bda30900374acd873e5a">gstEncoder::mAppSrc</a></div><div class="ttdeci">_GstElement * mAppSrc</div><div class="ttdef"><b>Definition:</b> gstEncoder.h:133</div></div>
<div class="ttc" id="classgstEncoder_html_a77b62cf64dceab9492e5e45dbdccdb0a"><div class="ttname"><a href="classgstEncoder.html#a77b62cf64dceab9492e5e45dbdccdb0a">gstEncoder::mOutputPort</a></div><div class="ttdeci">uint16_t mOutputPort</div><div class="ttdef"><b>Definition:</b> gstEncoder.h:141</div></div>
<div class="ttc" id="classgstEncoder_html_a722fde8fa1cbd516597ea0a5e8962c22"><div class="ttname"><a href="classgstEncoder.html#a722fde8fa1cbd516597ea0a5e8962c22">gstEncoder::mOutputPath</a></div><div class="ttdeci">std::string mOutputPath</div><div class="ttdef"><b>Definition:</b> gstEncoder.h:139</div></div>
<div class="ttc" id="structvideoOptions_html"><div class="ttname"><a href="structvideoOptions.html">videoOptions</a></div><div class="ttdoc">The videoOptions struct contains common settings that are used to configure and query videoSource and...</div><div class="ttdef"><b>Definition:</b> videoOptions.h:37</div></div>
<div class="ttc" id="classgstEncoder_html"><div class="ttname"><a href="classgstEncoder.html">gstEncoder</a></div><div class="ttdoc">Hardware-accelerated video encoder for Jetson using GStreamer. </div><div class="ttdef"><b>Definition:</b> gstEncoder.h:45</div></div>
<div class="ttc" id="classgstEncoder_html_a70652da4e8e3cf9cbda9df4894531497"><div class="ttname"><a href="classgstEncoder.html#a70652da4e8e3cf9cbda9df4894531497">gstEncoder::gstEncoder</a></div><div class="ttdeci">gstEncoder(const videoOptions &amp;options)</div></div>
<div class="ttc" id="classgstEncoder_html_afd341f4bfcdd3100bcc24a102b7793f4"><div class="ttname"><a href="classgstEncoder.html#afd341f4bfcdd3100bcc24a102b7793f4">gstEncoder::onNeedData</a></div><div class="ttdeci">static void onNeedData(_GstElement *pipeline, uint32_t size, void *user_data)</div></div>
<div class="ttc" id="classgstEncoder_html_a7a7be81637bfd842c25e7d66abaa11d7"><div class="ttname"><a href="classgstEncoder.html#a7a7be81637bfd842c25e7d66abaa11d7">gstEncoder::mPipeline</a></div><div class="ttdeci">_GstElement * mPipeline</div><div class="ttdef"><b>Definition:</b> gstEncoder.h:134</div></div>
<div class="ttc" id="classgstEncoder_html_a39bac88df0521b855a01aeb58953815e"><div class="ttname"><a href="classgstEncoder.html#a39bac88df0521b855a01aeb58953815e">gstEncoder::Open</a></div><div class="ttdeci">virtual bool Open()</div><div class="ttdoc">Open the stream. </div></div>
<div class="ttc" id="classgstEncoder_html_a29ebd7d82bf4a37c5e16c173b0946f21"><div class="ttname"><a href="classgstEncoder.html#a29ebd7d82bf4a37c5e16c173b0946f21">gstEncoder::encodeYUV</a></div><div class="ttdeci">bool encodeYUV(void *buffer, size_t size)</div></div>
<div class="ttc" id="classgstEncoder_html_a967e02f227d4739ead8760bba862efa1"><div class="ttname"><a href="classgstEncoder.html#a967e02f227d4739ead8760bba862efa1">gstEncoder::buildCapsStr</a></div><div class="ttdeci">bool buildCapsStr()</div></div>
<div class="ttc" id="gstUtility_8h_html"><div class="ttname"><a href="gstUtility_8h.html">gstUtility.h</a></div></div>
<div class="ttc" id="classgstEncoder_html_a342a2209793a5ab446395d31e485a07c"><div class="ttname"><a href="classgstEncoder.html#a342a2209793a5ab446395d31e485a07c">gstEncoder::mBufferYUV</a></div><div class="ttdeci">RingBuffer mBufferYUV</div><div class="ttdef"><b>Definition:</b> gstEncoder.h:143</div></div>
<div class="ttc" id="classgstEncoder_html_a0274b5b3365e440b93fd6b5c8bcf2b2e"><div class="ttname"><a href="classgstEncoder.html#a0274b5b3365e440b93fd6b5c8bcf2b2e">gstEncoder::Type</a></div><div class="ttdeci">static const uint32_t Type</div><div class="ttdoc">Unique type identifier of gstEncoder class. </div><div class="ttdef"><b>Definition:</b> gstEncoder.h:95</div></div>
<div class="ttc" id="classgstEncoder_html_ab11a3b2c977fc8e1dc1f34122223e050"><div class="ttname"><a href="classgstEncoder.html#ab11a3b2c977fc8e1dc1f34122223e050">gstEncoder::mCapsStr</a></div><div class="ttdeci">std::string mCapsStr</div><div class="ttdef"><b>Definition:</b> gstEncoder.h:137</div></div>
<div class="ttc" id="classgstEncoder_html_a5268beb9785a1e817171195a930cc1c0"><div class="ttname"><a href="classgstEncoder.html#a5268beb9785a1e817171195a930cc1c0">gstEncoder::Create</a></div><div class="ttdeci">static gstEncoder * Create(const videoOptions &amp;options)</div><div class="ttdoc">Create an encoder from the provided video options. </div></div>
<div class="ttc" id="classRingBuffer_html"><div class="ttname"><a href="classRingBuffer.html">RingBuffer</a></div><div class="ttdoc">Thread-safe circular ring buffer queue. </div><div class="ttdef"><b>Definition:</b> RingBuffer.h:33</div></div>
<div class="ttc" id="classgstEncoder_html_a9dc51057a967892d1a6ed115bb1a33e9"><div class="ttname"><a href="classgstEncoder.html#a9dc51057a967892d1a6ed115bb1a33e9">gstEncoder::mBufferCaps</a></div><div class="ttdeci">_GstCaps * mBufferCaps</div><div class="ttdef"><b>Definition:</b> gstEncoder.h:132</div></div>
<div class="ttc" id="structvideoOptions_html_a99a95e988dcf46c0e9177abc7217cf8f"><div class="ttname"><a href="structvideoOptions.html#a99a95e988dcf46c0e9177abc7217cf8f">videoOptions::Codec</a></div><div class="ttdeci">Codec</div><div class="ttdoc">Video codec types. </div><div class="ttdef"><b>Definition:</b> videoOptions.h:177</div></div>
<div class="ttc" id="group__imageFormat_html_ga931c48e08f361637d093355d64583406"><div class="ttname"><a href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a></div><div class="ttdeci">imageFormat</div><div class="ttdoc">The imageFormat enum is used to identify the pixel format and colorspace of an image. </div><div class="ttdef"><b>Definition:</b> imageFormat.h:49</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_54a0acf6da04fe2ed9410b4c6369bc5d.html">jetson-utils</a></li><li class="navelem"><a class="el" href="gstEncoder_8h.html">gstEncoder.h</a></li>
    <li class="footer">Generated on Tue Jul 14 2020 21:59:34 for Jetson Inference by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
